import 'dart:collection';

class SelfCenterModel {
  String? imgUrl;
  int? sex;
  String? breakAppointmentRate;
  int? grade;
  String? nickname;
  int? matchCount;
  int? praisedCount;
  int? focusCount;

  SelfCenterModel(
      {this.imgUrl,
      this.sex,
      this.breakAppointmentRate,
      this.grade,
      this.nickname,
      this.matchCount,
      this.praisedCount,
      this.focusCount});

  SelfCenterModel.fromJson(Map<String, dynamic> json) {
    imgUrl = json['imgUrl'];
    sex = json['sex'];
    breakAppointmentRate = json['breakAppointmentRate'];
    grade = json['grade'];
    nickname = json['nickname'];
    matchCount = json['matchCount'];
    praisedCount = json['praisedCount'];
    focusCount = json['focusCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = HashMap();
    data['imgUrl'] = imgUrl;
    data['sex'] = sex;
    data['breakAppointmentRate'] = breakAppointmentRate;
    data['grade'] = grade;
    data['nickname'] = nickname;
    data['matchCount'] = matchCount;
    data['praisedCount'] = praisedCount;
    data['focusCount'] = focusCount;
    return data;
  }
}